package com.tubang.organization.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.tubang.common.entity.BaseEntity;

/**
 * <p>
 * 菜单表
 * </p>
 *
 * @author wsl
 * @since 2017-11-30
 */
@TableName("tb_menu")
public class MenuEntity extends BaseEntity<MenuEntity> {

    private static final long serialVersionUID = 1L;

    /**
     * 父级编号 中间用逗号隔开
     */
	@TableField("parent_id")
	private String parentId;

	/**
	 * 菜单图标链接
	 */
	@TableField("icon_url")
	private String iconUrl;

    /**
     * 名称
     */
	private String name;
    /**
     * 排序
     */
	private Integer sort;
    /**
     * 链接
     */
	private String href;
    /**
     * 按钮
     */
	private String function;
    /**
     * 资源类型   1:链接   2：按钮
     */
	private String type;


	public String getParentId() {
		return parentId;
	}

	public MenuEntity setParentId(String parentId) {
		this.parentId = parentId;
		return this;
	}

	public String getName() {
		return name;
	}

	public MenuEntity setName(String name) {
		this.name = name;
		return this;
	}

	public Integer getSort() {
		return sort;
	}

	public MenuEntity setSort(Integer sort) {
		this.sort = sort;
		return this;
	}

	public String getHref() {
		return href;
	}

	public MenuEntity setHref(String href) {
		this.href = href;
		return this;
	}

	public String getFunction() {
		return function;
	}

	public MenuEntity setFunction(String function) {
		this.function = function;
		return this;
	}

	public String getType() {
		return type;
	}

	public MenuEntity setType(String type) {
		this.type = type;
		return this;
	}

	public String getIconUrl() {
		return iconUrl;
	}

	public void setIconUrl(String iconUrl) {
		this.iconUrl = iconUrl;
	}

	@Override
	public String toString() {
		StringBuilder stringBuilder = new StringBuilder();
		stringBuilder.append("Menu{");
		stringBuilder.append("parentId=");
		stringBuilder.append(parentId);
		stringBuilder.append(", name=");
		stringBuilder.append(name);
		stringBuilder.append(", sort=");
		stringBuilder.append(sort);
		stringBuilder.append(", href=");
		stringBuilder.append(href);
		stringBuilder.append(", function=");
		stringBuilder.append(function);
		stringBuilder.append(", type=");
		stringBuilder.append(type);
		stringBuilder.append("}");
		return stringBuilder.toString();
	}
}
